/**
 * createby : lbj
 * date : 2018/8/6
 * desc :
 **/

package com.example.demo.common.enums;

import lombok.Data;

public enum ResultEnum implements ProjectEnum{

    //成功返回
    SUCCESS(200, "SUCCESS"),

    //出现错误
    ERROR(400, "ERROR"),

    //参数不全
    PARAM_NULL(9001, "参数不全");

    public final int code;
    public final String message;

    ResultEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
